pub fn process_gen_pass(
    length: usize,
    upper: bool,
    lower: bool,
    number: bool,
    symbol: bool,
) -> String {
    let mut pass = String::new();
    let mut chars = vec![];
    if upper {
        chars.extend(b'A'..=b'Z');
    }
    if lower {
        chars.extend(b'a'..=b'z');
    }
    if number {
        chars.extend(b'0'..=b'9');
    }
    if symbol {
        chars.extend(b'!'..=b'%');
    }
    for _ in 0..length {
        pass.push(chars[rand::random::<usize>() % chars.len()] as char);
    }
    pass
}
